package com.xinghen.ace.auth.configuration;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author xinghen
 * @ClassName: KeyConfiguration
 * @Package: com.xinghen.ace.auth.configuration
 * @Description key配置
 * @create 2018/5/4 15:42
 */
@Configuration
@Data
public class KeyConfiguration {

    @Value("${jwt.rsa-secret}")
    private String userSecret;

    @Value("${client.rsa-secret}")
    private String serviceSecret;

    private byte[] userPubKey;

    private byte[] userPriKey;

    private byte[] servicePriKey;
    
    private byte[] servicePubKey;
}
